home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 1512 < prev    next >
Mailbox/MIME Entity  |  1996-08-06  |  1.4 KB

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


This file was processed as: Mailbox/MIME Entity (archive/mbox).

ConfidenceProgramDetectionMatch TypeSupport
100% dexvert Newsgroup Content (archive/news) magic Supported
100% dexvert Mailbox/MIME Entity (archive/mbox) magic Supported
100% dexvert Internet Message Format (text/imf) magic Supported
1% dexvert Text File (text/txt) fallback Supported
100% file news, ASCII text default
100% checkBytes Printable ASCII default
100% dexmagic PrintFox/Pagefox WEAK default
100% perlTextCheck Likely Text (Perl) default
100% siegfried fmt/950 MIME Email (1.0) default
100% detectItEasy Format: plain text[LF] default (weak)
100% xdgMime message/news default



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 50 61 74 68 3a 20 6e 65 | 77 73 2e 61 62 61 6c 6f |Path: ne|ws.abalo|
|00000010| 6e 2e 73 65 21 6e 65 77 | 73 0a 46 72 6f 6d 3a 20 |n.se!new|s.From: |
|00000020| 6b 65 6e 31 40 61 62 61 | 6c 6f 6e 2e 73 65 0a 4e |ken1@aba|lon.se.N|
|00000030| 65 77 73 67 72 6f 75 70 | 73 3a 20 63 6f 6d 70 2e |ewsgroup|s: comp.|
|00000040| 6c 61 6e 67 2e 63 2b 2b | 0a 53 75 62 6a 65 63 74 |lang.c++|.Subject|
|00000050| 3a 20 52 65 3a 20 73 69 | 7a 65 20 6f 66 20 76 74 |: Re: si|ze of vt|
|00000060| 61 62 6c 65 0a 44 61 74 | 65 3a 20 31 31 20 4a 61 |able.Dat|e: 11 Ja|
|00000070| 6e 20 31 39 39 36 20 31 | 32 3a 32 30 3a 33 33 20 |n 1996 1|2:20:33 |
|00000080| 47 4d 54 0a 4f 72 67 61 | 6e 69 7a 61 74 69 6f 6e |GMT.Orga|nization|
|00000090| 3a 20 41 62 61 6c 6f 6e | 20 41 42 2c 20 53 74 6f |: Abalon| AB, Sto|
|000000a0| 63 6b 68 6f 6c 6d 2c 20 | 53 77 65 64 65 6e 0a 4d |ckholm, |Sweden.M|
|000000b0| 65 73 73 61 67 65 2d 49 | 44 3a 20 3c 34 64 32 76 |essage-I|D: <4d2v|
|000000c0| 61 68 24 68 63 6a 40 73 | 65 61 6c 2e 61 62 61 6c |ah$hcj@s|eal.abal|
|000000d0| 6f 6e 2e 73 65 3e 0a 52 | 65 66 65 72 65 6e 63 65 |on.se>.R|eference|
|000000e0| 73 3a 20 3c 34 63 72 31 | 6f 62 24 31 63 75 40 73 |s: <4cr1|ob$1cu@s|
|000000f0| 65 61 6c 2e 61 62 61 6c | 6f 6e 2e 73 65 3e 20 3c |eal.abal|on.se> <|
|00000100| 33 30 66 32 64 65 65 36 | 2e 30 40 6e 65 77 73 2e |30f2dee6|.0@news.|
|00000110| 73 62 62 73 2e 73 65 3e | 20 3c 34 64 31 33 62 72 |sbbs.se>| <4d13br|
|00000120| 24 39 6a 66 40 63 6e 6e | 2e 50 72 69 6e 63 65 74 |$9jf@cnn|.Princet|
|00000130| 6f 6e 2e 45 44 55 3e 0a | 4e 4e 54 50 2d 50 6f 73 |on.EDU>.|NNTP-Pos|
|00000140| 74 69 6e 67 2d 48 6f 73 | 74 3a 20 6b 65 6e 31 70 |ting-Hos|t: ken1p|
|00000150| 63 2e 61 62 61 6c 6f 6e | 2e 73 65 0a 4d 69 6d 65 |c.abalon|.se.Mime|
|00000160| 2d 56 65 72 73 69 6f 6e | 3a 20 31 2e 30 0a 43 6f |-Version|: 1.0.Co|
|00000170| 6e 74 65 6e 74 2d 54 79 | 70 65 3a 20 74 65 78 74 |ntent-Ty|pe: text|
|00000180| 2f 70 6c 61 69 6e 3b 20 | 63 68 61 72 73 65 74 3d |/plain; |charset=|
|00000190| 75 73 2d 61 73 63 69 69 | 0a 43 6f 6e 74 65 6e 74 |us-ascii|.Content|
|000001a0| 2d 54 72 61 6e 73 66 65 | 72 2d 45 6e 63 6f 64 69 |-Transfe|r-Encodi|
|000001b0| 6e 67 3a 20 37 62 69 74 | 0a 58 2d 4d 61 69 6c 65 |ng: 7bit|.X-Maile|
|000001c0| 72 3a 20 4d 6f 7a 69 6c | 6c 61 20 31 2e 32 32 20 |r: Mozil|la 1.22 |
|000001d0| 28 57 69 6e 64 6f 77 73 | 3b 20 49 3b 20 33 32 62 |(Windows|; I; 32b|
|000001e0| 69 74 29 0a 54 6f 3a 20 | 74 69 6d 40 66 72 61 6e |it).To: |tim@fran|
|000001f0| 63 6b 2e 50 72 69 6e 63 | 65 74 6f 6e 2e 45 44 55 |ck.Princ|eton.EDU|
|00000200| 0a 0a 3e 3e 49 73 20 69 | 74 20 70 6f 73 73 69 62 |..>>Is i|t possib|
|00000210| 6c 65 20 74 6f 20 6b 6e | 6f 77 20 74 68 65 20 73 |le to kn|ow the s|
|00000220| 69 7a 65 20 6f 66 20 74 | 68 65 20 76 74 62 6c 20 |ize of t|he vtbl |
|00000230| 66 6f 72 20 61 20 67 69 | 76 65 6e 20 63 6c 61 73 |for a gi|ven clas|
|00000240| 73 0a 3e 3e 61 74 20 63 | 6f 6d 70 69 6c 65 20 74 |s.>>at c|ompile t|
|00000250| 69 6d 65 20 28 74 6f 20 | 64 6f 20 73 6f 6d 65 74 |ime (to |do somet|
|00000260| 68 69 6e 67 20 6c 69 6b | 65 0a 3e 3e 0a 3e 3e 69 |hing lik|e.>>.>>i|
|00000270| 6e 74 20 78 20 3d 20 73 | 69 7a 65 6f 66 28 74 68 |nt x = s|izeof(th|
|00000280| 65 63 6c 61 73 73 3a 3a | 76 74 62 6c 29 0a 3e 3e |eclass::|vtbl).>>|
|00000290| 0a 3e 3e 6f 72 20 73 69 | 6d 69 6c 61 72 29 3f 0a |.>>or si|milar)?.|
|000002a0| 0a 3e 46 69 72 73 74 2c | 20 74 68 65 20 6f 62 76 |.>First,| the obv|
|000002b0| 69 6f 75 73 3a 20 57 68 | 79 20 64 6f 20 79 6f 75 |ious: Wh|y do you|
|000002c0| 20 63 61 72 65 3f 20 20 | 49 67 6e 6f 72 69 6e 67 | care? |Ignoring|
|000002d0| 20 74 68 61 74 20 2e 2e | 2e 0a 0a 49 20 63 61 72 | that ..|...I car|
|000002e0| 65 20 62 65 63 61 75 73 | 65 20 49 27 6d 20 64 6f |e becaus|e I'm do|
|000002f0| 69 6e 67 20 4f 4c 45 20 | 72 65 6c 61 74 65 64 20 |ing OLE |related |
|00000300| 64 65 76 65 6c 6f 70 6d | 65 6e 74 20 66 6f 72 20 |developm|ent for |
|00000310| 57 69 6e 33 32 2e 20 41 | 73 20 4f 4c 45 20 75 73 |Win32. A|s OLE us|
|00000320| 65 73 20 0a 76 74 61 62 | 6c 65 73 20 66 6f 72 20 |es .vtab|les for |
|00000330| 69 74 73 20 69 6e 74 65 | 72 66 61 63 65 73 20 61 |its inte|rfaces a|
|00000340| 6e 64 20 49 20 77 61 6e | 74 20 74 6f 20 70 72 6f |nd I wan|t to pro|
|00000350| 76 69 64 65 20 74 68 65 | 20 6e 6f 74 69 6f 6e 20 |vide the| notion |
|00000360| 6f 66 20 61 20 43 2b 2b | 20 6f 62 6a 65 63 74 20 |of a C++| object |
|00000370| 0a 68 61 76 69 6e 67 20 | 74 68 65 20 4f 4c 45 20 |.having |the OLE |
|00000380| 6e 6f 74 69 6f 6e 20 6f | 66 20 6d 75 6c 74 69 70 |notion o|f multip|
|00000390| 6c 65 20 69 6e 74 65 72 | 66 61 63 65 73 20 49 20 |le inter|faces I |
|000003a0| 68 61 76 65 20 74 6f 20 | 62 75 69 6c 64 20 6d 79 |have to |build my|
|000003b0| 20 6f 77 6e 20 76 74 61 | 62 6c 65 73 20 0a 28 61 | own vta|bles .(a|
|000003c0| 74 20 6c 65 61 73 74 20 | 69 66 20 49 20 77 61 6e |t least |if I wan|
|000003d0| 74 20 74 6f 20 61 76 6f | 69 64 20 75 73 69 6e 67 |t to avo|id using|
|000003e0| 20 6d 75 6c 74 69 70 6c | 65 20 69 6e 68 65 72 69 | multipl|e inheri|
|000003f0| 74 61 6e 63 65 20 77 68 | 69 63 68 20 77 6f 75 6c |tance wh|ich woul|
|00000400| 64 20 67 69 76 65 20 0a | 73 6f 6d 65 20 70 72 6f |d give .|some pro|
|00000410| 62 6c 65 6d 73 20 6f 66 | 20 69 74 73 20 6f 77 6e |blems of| its own|
|00000420| 29 2c 20 74 68 75 73 20 | 6e 65 65 64 69 6e 67 20 |), thus |needing |
|00000430| 74 6f 20 6b 6e 6f 77 20 | 68 6f 77 20 6d 61 6e 79 |to know |how many|
|00000440| 20 66 75 6e 63 74 69 6f | 6e 20 70 6f 69 6e 74 65 | functio|n pointe|
|00000450| 72 73 20 0a 49 20 73 68 | 6f 75 6c 64 20 61 6c 6c |rs .I sh|ould all|
|00000460| 6f 63 61 74 65 20 73 70 | 61 63 65 20 66 6f 72 2e |ocate sp|ace for.|
|00000470| 0a 0a 49 20 6b 6e 6f 77 | 20 61 6e 79 20 74 65 63 |..I know| any tec|
|00000480| 68 6e 69 71 75 65 20 69 | 73 20 69 6e 68 65 72 65 |hnique i|s inhere|
|00000490| 6e 74 6c 79 20 6e 6f 6e | 2d 70 6f 72 74 61 62 6c |ntly non|-portabl|
|000004a0| 65 20 73 69 6e 63 65 20 | 76 74 61 62 6c 65 73 20 |e since |vtables |
|000004b0| 61 72 65 20 6e 6f 74 20 | 0a 69 6d 70 6c 65 6d 65 |are not |.impleme|
|000004c0| 6e 74 65 64 20 69 6e 20 | 74 68 65 20 73 61 6d 65 |nted in |the same|
|000004d0| 20 77 61 79 20 66 6f 72 | 20 61 6c 6c 20 63 6f 6d | way for| all com|
|000004e0| 70 69 6c 65 72 73 2e 20 | 46 6f 72 20 74 68 65 20 |pilers. |For the |
|000004f0| 73 70 65 63 69 66 69 63 | 20 63 61 73 65 20 6f 66 |specific| case of|
|00000500| 20 0a 56 43 2b 2b 20 6f | 6e 20 4e 54 20 68 6f 77 | .VC++ o|n NT how|
|00000510| 65 76 65 72 2c 20 74 68 | 65 20 4f 4c 45 20 61 6e |ever, th|e OLE an|
|00000520| 64 20 56 43 2b 2b 20 6e | 6f 74 69 6f 6e 20 6f 66 |d VC++ n|otion of|
|00000530| 20 61 20 76 74 61 62 6c | 65 20 69 73 20 74 68 65 | a vtabl|e is the|
|00000540| 20 73 61 6d 65 2e 20 49 | 20 0a 73 68 6f 75 6c 64 | same. I| .should|
|00000550| 20 68 61 76 65 20 6c 69 | 6d 69 74 65 64 20 6d 79 | have li|mited my|
|00000560| 20 71 75 65 73 74 69 6f | 6e 20 6f 66 20 63 6f 75 | questio|n of cou|
|00000570| 72 73 65 2e 0a 0a 6b 65 | 6e 31 0a 0a |rse...ke|n1.. |
+--------+-------------------------+-------------------------+--------+--------+